package com.foreveross.crawl.common.exception.self;

import com.foreveross.crawl.common.exception.BusinessException;
import com.foreveross.crawl.common.exception.enums.TaskStatusEnum;

/**
 * 源网页数据为空异常
 * @author xiangsf 
 * @since 2013-2-2
 */
public class SourceWebPageNullException extends BusinessException {
	/**
	 * 
	 */
	private static final long serialVersionUID = 3012142161073350589L;

	public SourceWebPageNullException(String message){
		super(TaskStatusEnum.TASK_SOURCE_WEB_PAGE_NULL.getStatus(), message);
	}
	
	public SourceWebPageNullException(String message,Throwable rootCause){
		super(TaskStatusEnum.TASK_SOURCE_WEB_PAGE_NULL.getStatus(), message,rootCause);
	}
	
	public SourceWebPageNullException(String message, Exception ex){
		super(TaskStatusEnum.TASK_SOURCE_WEB_PAGE_NULL.getStatus(), message,ex);
	}

	public SourceWebPageNullException(Throwable rootCause){
		super(TaskStatusEnum.TASK_SOURCE_WEB_PAGE_NULL.getStatus(), TaskStatusEnum.TASK_SOURCE_WEB_PAGE_NULL.getRemark(), rootCause);
	}
	
	public SourceWebPageNullException(){
		super(TaskStatusEnum.TASK_SOURCE_WEB_PAGE_NULL.getStatus(), TaskStatusEnum.TASK_SOURCE_WEB_PAGE_NULL.getRemark());
	}
}
